package com.example.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.domain.Track;
import com.example.service.TrackService;




/**
 * 销售-外勤打卡记录
 * @author user
 *
 */
@RestController
@RequestMapping("/api/track")
public class XsTrackController {

	@Autowired
    private TrackService trackService;
	
	@RequestMapping("/list")
    public List<Track> track(String id,String startDate, String endDate){
        return trackService.getTrack(id, startDate, endDate);
    }
	
	@RequestMapping("/personlist")
    public List<Track> trackPerson(){
        return trackService.getTrack2();
    }
}

